package shopping.service.interfaces;

import java.util.List;
import java.util.Map;

import shopping.entity.Role;

public interface IRoleService {


	/**
	 * 插入
	 */
	 void save(Role role);
	 
	 /**
	  * 按id删除
	  */
	 void deleteById(Role role);
	 
	 /**
	  * 修改
	  */
	 void update(Role role);
	 
	 /**
	  * 按id查询
	  * @param roleId
	  * @return
	  */
	 Role queryById(int roleId);
	
	 /**
	  * 条件查询
	  * @return
	  */
	 List<Role> findByHql(Class<Role> cla,Map<String, Object> map);
	 
	 List<Role> findByHqlPage(Map<String,Object> columsAndValues ,final int offset, final int pageSize);
	 
	 public int countByHql(Map<String,Object> columsAndValues);
	 
}
